package com.yungu.swift.assets.driver.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.yungu.swift.assets.driver.model.dto.DriverWithdrawalDto;
import com.yungu.swift.assets.driver.model.dto.DriverCashDto;
import com.yungu.swift.base.mapper.IMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 司机提现业务Mapper
 *
 * @author cuixiuyin - Generate
 * @version 1.1.1-SNAPSHOT
 * @since 2018-07-05 16:23
 */
public interface DriverCashMapper extends IMapper<DriverCashDto> {

    /**
     * 司机账户详情
     *
     * @param uuid
     * @return
     */
    DriverCashDto detail(@Param("uuid") String uuid);

    /**
     * 【后台管理】司机提现账单
     *
     * @param map        Map
     * @param pageBounds PageBounds
     * @return PageList
     */
    PageList<DriverWithdrawalDto> cashBillPage(Map<String, Object> map, PageBounds pageBounds);

    /**
     * 【后台管理】 司机提现账单（EXCEL导出）
     *
     * @param map 参数集合
     * @return List
     * @author Zerrion
     * @date 2018/10/23
     */
    List<DriverWithdrawalDto> cashBillPage(Map<String, Object> map);
}